package org.example.seat_management.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.seat_management.Entity.ClassInfo;

import java.util.List;

@Mapper
public interface ClassInfoMapper {
    int insert(ClassInfo entity);
    int update(ClassInfo entity);
    int softDelete(@Param("id") Long id);
    ClassInfo findById(@Param("id") Long id);
    ClassInfo findByCode(@Param("classCode") String classCode);
    List<ClassInfo> findAll();
}


